void savedata()
{
	FILE *fp;
    EMP *emp1;
      
    if(gsave==0) return;
      
    if((fp=fopen("employee.dat","wb"))==NULL)
    {
        printf("打开文件employee.dat出错！\n");
        getch();
        return;
    }
      
    emp1=emp_first;
    while(emp1)
    {
        fwrite(emp1,sizeof(EMP),1,fp);
        emp1=emp1->next;
    }
      
    gsave=0;
     fclose(fp);
}